//
//  DDManager.m
//  ialone
//
//  Created by 陆翀 on 16/1/18.
//  Copyright © 2016年 JasperSong. All rights reserved.
//

#import "DDManager.h"

@implementation DDManager
+(DDManager *)sharedHandle
{
    static DDManager *manager = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        manager = [[DDManager alloc]init];
    });
    return manager;
}
-(BOOL)islogin
{
    return [[NSUserDefaults standardUserDefaults] boolForKey:@"islogin"];
}
-(NSString *)username
{
    return [[NSUserDefaults standardUserDefaults] valueForKey:@"username"];
}
@end
